﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using SimpleMap.Binders;
using SimpleMap.Setters;

namespace SimpleMap.DataLinks
{

    /// <summary>
    /// A linked between a value setter and a column ordinal for a specific dataset
    /// </summary>
    public class ProjectionLink<T> : IProjectionLink<T>
    {
        
        /// <summary>
        /// The ordinal of the column to get the value from
        /// </summary>
        public int Ordinal { get; set; }
        
        /// <summary>
        /// The setter to use for the value
        /// </summary>
        public IValueSetter<T> Setter { get; set; }
    }

}
